package seven_ImplementStr;

public class CSolution {

    public static void main(String[] args) {
        System.out.println("aa");
        CSolution cSolution = new CSolution();
        System.out.println(cSolution.strStr("hello", "ll"));
        System.out.println(cSolution.strStr("aaaaa", "bba"));
    }
    public int strStr(String haystack, String needle) {
        if(haystack == null || needle == null ||"".equals(needle)) {
            return 0;
        }
        return haystack.indexOf(needle);
    }
}
